package com.cat.model;

import com.google.common.base.MoreObjects;

import java.util.Date;

public class Member {
    private Integer id;

    private String name;

    private Integer age;

    private String phone;

    private Date createTime;

    private Date modifyTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(getClass())
        .add("Hash",hashCode())
        .add("id",id).add("name",name).add("age",age)
        .add("phone",phone).add("createTime",createTime).add("modifyTime",modifyTime)
        .omitNullValues().toString();
    }
}